package com.ruoyi.hatha.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hatha.mapper.PYuyueMapper;
import com.ruoyi.hatha.domain.PYuyue;
import com.ruoyi.hatha.service.IPYuyueService;

/**
 * 预约管理Service业务层处理
 * 
 * @author Dong
 * @date 2024-01-02
 */
@Service
public class PYuyueServiceImpl implements IPYuyueService 
{
    @Autowired
    private PYuyueMapper pYuyueMapper;

    /**
     * 查询预约管理
     * 
     * @param id 预约管理主键
     * @return 预约管理
     */
    @Override
    public PYuyue selectPYuyueById(Long id)
    {
        return pYuyueMapper.selectPYuyueById(id);
    }

    /**
     * 查询预约管理列表
     * 
     * @param pYuyue 预约管理
     * @return 预约管理
     */
    @Override
    public List<PYuyue> selectPYuyueList(PYuyue pYuyue)
    {
        return pYuyueMapper.selectPYuyueList(pYuyue);
    }

    /**
     * 新增预约管理
     * 
     * @param pYuyue 预约管理
     * @return 结果
     */
    @Override
    public int insertPYuyue(PYuyue pYuyue)
    {
        return pYuyueMapper.insertPYuyue(pYuyue);
    }

    /**
     * 修改预约管理
     * 
     * @param pYuyue 预约管理
     * @return 结果
     */
    @Override
    public int updatePYuyue(PYuyue pYuyue)
    {
        return pYuyueMapper.updatePYuyue(pYuyue);
    }

    /**
     * 批量删除预约管理
     * 
     * @param ids 需要删除的预约管理主键
     * @return 结果
     */
    @Override
    public int deletePYuyueByIds(Long[] ids)
    {
        return pYuyueMapper.deletePYuyueByIds(ids);
    }

    /**
     * 删除预约管理信息
     * 
     * @param id 预约管理主键
     * @return 结果
     */
    @Override
    public int deletePYuyueById(Long id)
    {
        return pYuyueMapper.deletePYuyueById(id);
    }

    @Override
    public List<PYuyue> selectPYuyueListByDate(String pYuyue) {
        return pYuyueMapper.selectPYuyueListByDate(pYuyue);
    }

    @Override
    public void quxiao(PYuyue pyy) {
        pYuyueMapper.quxiao(pyy);
    }

    @Override
    public List<PYuyue> selectPYuyueListByMkId(String ll) {
        return pYuyueMapper.selectPYuyueListByMkId(ll);
    }
}
